﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using System.Text;

using BlueCMS.Core.Data.Query.Generator;

namespace BlueCMS.Core.Data
{
    public interface IDataProvider
    {
        DbParameter CreateParameter(string name, object value);
        
        int ExecuteNonQuery(string commandText, DbParameter[] parameters);
        DbDataReader ExecuteDataReader(string commandText, DbParameter[] parameters);
        object ExecuteScalar(string commandText, DbParameter[] parameters);

        QueryGeneratorBase GetQueryGenerator();
    }
}
